import request from '@/utils/request'
import httpRequest from '@/utils/httpRequest'
// 查询工序衔接关系列表
export function listConnection(query) {
  return httpRequest({
    url: httpRequest.adornUrl('/gy/connection/list'),
    method: 'get',
    params: query
  })
}

// 查询工序衔接关系详细
export function getConnection(id) {
  return request({
    url: '/gy/connection/' + id,
    method: 'get'
  })
}

// 新增工序衔接关系
export function addConnection(data) {
  return request({
    url: '/gy/connection',
    method: 'post',
    data: data
  })
}

// 修改工序衔接关系
export function updateConnection(data) {
  return request({
    url: '/gy/connection',
    method: 'put',
    data: data
  })
}

// 删除工序衔接关系
export function delConnection(id) {
  return request({
    url: '/gy/connection/' + id,
    method: 'delete'
  })
}
